#include<bits/stdc++.h>
#include<iostream>
#include<string.h>
#include<string>
using namespace std;
struct im
{
	string s;
	int na;
	double g;
};
int main()
{
	int n;
	cin>>n;
	int i;
	struct im k;
	for(i=1;i<=n;i++)
	{
		cin>>k.s>>k.na>>k.g;
		cout<<k.s<<" "<<k.na+1<<" ";
		if(k.g*1.2<=600) printf("%d\n",(int)(k.g*1.2));
		else printf("600\n");
	};
	return 0;
}
